{#<ul class="layui-nav layui-nav-tree" lay-filter="test">#}
<div class="mart30">

</div>
<ul class="layui-nav layui-nav-tree">
    {% for index,item in menu %}
        {
        <div class="sonsGroup {{ index == 0?"":"hidden" }}" id="box_{{ item.id }}">
            <li class="layui-nav-item">
                {% if item.link == "root" %}
                    {#<a href="javascript:;"><span class="{{ item.pic }} c12"></span> {{ item.name }}</a>#}
                    {#<dl class="layui-nav-child">#}
                    {% for itemSon in item.sons %}
                        {% if itemSon.link == "root" %}
                            {#<dd>#}
                                {#<a href="javascript:;"><span class="{{ itemSon.pic }}"></span> {{ itemSon.name }}</a>#}
                                {#<dl class="layui-nav-child">#}
                                    {#{% for itemSonSon in itemSon.sons %}#}
                                        {#<dd><a href="{{ itemSonSon.link }}" target="mainframe">&nbsp;&nbsp;&nbsp;&nbsp;<span class="{{ itemSonSon.pic }} c12"></span> {{ itemSonSon.name }}</a></dd>#}
                                    {#{% endfor %}#}
                                {#</dl>#}
                            {#</dd>#}
                        {% else %}
                            <dd class="tar">
                                <a href="{{ itemSon.link }}" target="mainframe">
                                    {#<span class="{{ itemSon.pic }} c12"></span>#}
                                    {{ itemSon.name }}
                                    <span class="fa fa-caret-right"></span>
                                </a>
                            </dd>
                        {% endif %}
                    {% endfor %}
                    {#</dl>#}
                {% else %}
                    {#<a href="{{ item.link }}" target="mainframe"><span class="{{ item.pic }} c12"></span> {{ item.name }}</a>#}
                {% endif %}
            </li>
        </div>
    {% endfor %}
</ul>
